package com.azure.apachedubbo.provider.service;

import com.azure.apachedubbo.api.service.DemoUserService;
import org.apache.dubbo.config.annotation.Service;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import java.util.Arrays;
import java.util.List;

/**
 * @Author: liuhuaibin
 * @Date: 2019/2/23 13:19
 * @Description:
 */
@Service(version = "${demo.service.version}", group = "${demo.service.group}", interfaceClass = DemoUserService.class)
public class UserServiceImpl implements DemoUserService {
    private final Logger logger = LoggerFactory.getLogger(getClass());

    @Override
    public List<String> findAll() {
        List<String> strings = Arrays.asList("1", "2", "3", "4", "5");
        logger.info("provider----> "+strings);
        return strings;
    }
}
